﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace FySystem.Net.LSTP.MC
{
    public class LSTPMCClient : LSTPMCBase
    {
        public LSTPConnection LSTPConnection { get; private set; }

        /// <summary>
        /// 初始化客户端
        /// </summary>
        /// <param name="ip"></param>
        /// <param name="port"></param>
        public LSTPMCClient(IPAddress ip,int port)
        {
            try
            {
                IP = ip;
                Port = port;
                GetControllers();
                LSTPConnection = new LSTPConnection(ip, port, OnRequest);
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}
